﻿<UserControl x:Class="Studio77.RuneMaster.Views.ScoreView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Width="282" Height="158">
	<UserControl.Resources>
		<Storyboard x:Name="StoryboardShow">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="LayoutRoot">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<QuinticEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="LayoutRoot">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<QuinticEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
        <LinearGradientBrush x:Name="BrushNormal" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF0080FF" Offset="0"/>
			<GradientStop Color="#FF003972" Offset="1"/>
		</LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh1" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFC696FF" Offset="0"/>
			<GradientStop Color="#FF6800FF" Offset="0.992"/>
			<GradientStop Color="#FF5D00FF" Offset="0.682"/>
		</LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh2" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFFFB20E" Offset="0.009"/>
			<GradientStop Color="#FFEA5008" Offset="1"/>
		</LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh3" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFFFF40D" Offset="1"/>
			<GradientStop Color="#FFB90000"/>
			<GradientStop Color="#FFE76D08" Offset="0.699"/>
		</LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh4" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF973924" Offset="0.009"/>
			<GradientStop Color="#FFFD0202" Offset="1"/>
		</LinearGradientBrush>
	</UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5">
    	<Grid.RenderTransform>
    		<CompositeTransform/>
    	</Grid.RenderTransform>
    	<Image x:Name="imgDuplex" Margin="0" Source="/Images/eliminate_triple.png" Stretch="None" VerticalAlignment="Top"/>
    	<TextBlock Margin="0,41,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtScore}" VerticalAlignment="Top" FontSize="48" TextAlignment="Center" FontFamily="Segoe WP Semibold" Foreground="White"/>
    	<TextBlock x:Name="txtScore" Margin="-2,40,2,0" TextWrapping="Wrap" Text="+600" VerticalAlignment="Top" FontSize="48" TextAlignment="Center" FontFamily="Segoe WP Semibold" Foreground="Black"/>
    	<Image x:Name="imgCombo" Source="/Images/combo.png" Stretch="None" Margin="60,112,93,11"/>
    	<TextBlock Margin="196,93,0,1" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtCombo}" VerticalAlignment="Center" FontSize="53.333" FontFamily="Segoe WP Black" HorizontalAlignment="Left" Foreground="White" Visibility="{Binding Visibility, ElementName=imgCombo}"/>
    	<TextBlock x:Name="txtCombo" Margin="194,92,0,2" TextWrapping="Wrap" Text="7" VerticalAlignment="Center" FontSize="53.333" FontFamily="Segoe WP Black" HorizontalAlignment="Left" Visibility="{Binding Visibility, ElementName=imgCombo}">
    		<TextBlock.Foreground>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FFAA9400" Offset="0"/>
    				<GradientStop Color="#FFFF1004" Offset="1"/>
    			</LinearGradientBrush>
    		</TextBlock.Foreground>
    	</TextBlock>
    	<Path Data="M55,104 L220,104" Fill="#FFF4F4F5" HorizontalAlignment="Center" Height="2" Margin="0,104,0,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="176.667" StrokeThickness="2" Visibility="{Binding Visibility, ElementName=imgCombo}">
    		<Path.Stroke>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="Black" Offset="0"/>
    				<GradientStop Color="White" Offset="1"/>
    			</LinearGradientBrush>
    		</Path.Stroke>
    	</Path>
    </Grid>
</UserControl>